package net.huashitong.ssydt.provider.exam.mapper;

import net.huashitong.ssydt.exam.entity.SsExamErrorQuestion;
import net.huashitong.ssydt.exam.entity.vo.QuestionErrorCollectionListInVO;
import net.huashitong.ssydt.exam.entity.vo.QuestionErrorListOutVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsExamErrorQuestionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SsExamErrorQuestion record);

    int insertSelective(SsExamErrorQuestion record);

    SsExamErrorQuestion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SsExamErrorQuestion record);

    int updateByPrimaryKey(SsExamErrorQuestion record);

    SsExamErrorQuestion getByUserIdWithQuestionId(SsExamErrorQuestion ssExamErrorQuestion);

    List<QuestionErrorListOutVO> countGroupByBelongYearMonthByUserId(QuestionErrorCollectionListInVO questionErrorCollectionListInVO);

    List<SsExamErrorQuestion> findByUserIdWithBelongYearMonth(SsExamErrorQuestion ssExamErrorQuestion);

    int countLessTanErrorQuestionId(SsExamErrorQuestion ssExamErrorQuestion);

    int deleteByUserId(String userId);

    int countUserIdWithBelongYearMonth(SsExamErrorQuestion ssExamErrorQuestion);
}